package com.codrim.cs.data.server.dao.entity;

import com.codrim.cs.data.rpc.dto.result.OfferDataDTO;

import lombok.Data;

/**
 * @author Liang.Zhuge
 * @date 17/08/2017
 */
@Data
public class OfferDataDO {
    private Integer offerId;
    private String symbol;
    private Long clicks;
    private Long uniqueClicks;
    private Long grossConversions;
    private Long conversions;
    private Long scrubConversions;

    private Float revenue;
    private Float cost;

    public OfferDataDTO toOfferDataDTO() {
        OfferDataDTO offerDataDTO = new OfferDataDTO();
        offerDataDTO.setOfferId(this.offerId);
        offerDataDTO.setSymbol(this.symbol);

        offerDataDTO.setClicks(this.clicks);
        offerDataDTO.setUniqueClicks(this.uniqueClicks);
        offerDataDTO.setGrossConversions(this.grossConversions);
        offerDataDTO.setScrubbedConversions(this.scrubConversions);
        offerDataDTO.setConversions(this.conversions);
        offerDataDTO.setRevenue(this.revenue);
        offerDataDTO.setCost(this.cost);

        return offerDataDTO;
    }
}
